package com.kly.sc.api.application.controller.order.request;

import com.alibaba.fastjson.JSONObject;
import com.kly.dto.ProductDto;
import com.kly.enums.PayGatewayEnum;
import com.kly.enums.PayTypeEnum;
import com.kly.req.RepayRequest;

import java.math.BigDecimal;
import java.util.Objects;

/**
 * @author linqu
 */
public class PaymentTokenReq {
    /**
     * 包名
     */
    private String packageName;
    /**
     * googlePlay 上的产品
     */
    private String productId;
    /**
     * 购买时间
     */
    private Long purchaseTime;
    /**
     * 订单的购买状态。可能的值包括：0。购买 1. 已取消 2. 待处理
     */
    private Integer purchaseState;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * token
     */
    private String purchaseToken;

    private boolean acknowledged;
    /**
     * 订单号
     */
    private String orderId;

    /**
     * 订阅
     */
    private boolean autoRenewing;

    private BigDecimal amount;


    private String orderNoTmp;

    public String getOrderNoTmp() {
        return orderNoTmp;
    }

    public void setOrderNoTmp(String orderNoTmp) {
        this.orderNoTmp = orderNoTmp;
    }

    public boolean isAutoRenewing() {
        return autoRenewing;
    }

    public void setAutoRenewing(boolean autoRenewing) {
        this.autoRenewing = autoRenewing;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Long getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(Long purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public Integer getPurchaseState() {
        return purchaseState;
    }

    public void setPurchaseState(Integer purchaseState) {
        this.purchaseState = purchaseState;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getPurchaseToken() {
        return purchaseToken;
    }

    public void setPurchaseToken(String purchaseToken) {
        this.purchaseToken = purchaseToken;
    }

    public boolean isAcknowledged() {
        return acknowledged;
    }

    public void setAcknowledged(boolean acknowledged) {
        this.acknowledged = acknowledged;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
}
